package com.yh.csx.crm.service.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * DevCustomerAddReq class
 *
 * @author huyalin
 * @date 2019/4/11
 */
@Data
public class DevCustomerAddReq {

    @ApiModelProperty("ID")
    private Long id;

    @NotBlank(message = "客户名称不能为空")
    @ApiModelProperty("客户名称")
    private String customerName;

    @NotBlank(message = "一级客户分类不能为空")
    @ApiModelProperty("一级客户分类")
    private String firstCategoryCode;

    @NotBlank(message = "二级客户分类不能为空")
    @ApiModelProperty("二级客户分类")
    private String secondCategoryCode;

    @NotBlank(message = "三级客户分类不能为空")
    @ApiModelProperty("三级客户分类")
    private String thirdCategoryCode;

    @NotNull
    @ApiModelProperty("客户分类ID")
    private Integer customerCategoryId;

    @ApiModelProperty("联系人姓名")
    private String contactPerson;

    @Size(max = 11, message = "联系电话超过最大长度")
    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("注册资本ID")
    private Integer registeredCapitalId;

    @ApiModelProperty("注册资本")
    private String registeredCapital;

    @ApiModelProperty("业务对接人ID")
    private Long salesUserId;

    @ApiModelProperty("业务对接人姓名")
    private String salesUserName;

    @ApiModelProperty("法定代表人")
    private String legalPersonName;

    @ApiModelProperty("传真")
    private String fax;

    @Size(max = 6, message = "邮政编码超过最大长度")
    @ApiModelProperty("邮政编码")
    private String postCode;

    @ApiModelProperty("客户地址-省（传sapCode）")
    private String regionProvince;

    @ApiModelProperty("客户地址-省")
    private String regionProvinceName;

    @ApiModelProperty("客户地址-市（传regionName）")
    private String regionCity;

    @ApiModelProperty("客户地址-区（传regionName）")
    private String regionArea;

    @ApiModelProperty("客户地址-详细地址")
    private String addressDetails;

    @Size(max = 255, message = "描述文字超过最大长度255个字符")
    @ApiModelProperty("描述")
    private String remark;
}
